package com.qst.dao;

public class User {
	String name = "张三";
	int id = 0001;
	int age = 18;
	String address = "广东中山";
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public User(String name, int id, int age) {
		super();
		this.name = name;
		this.id = id;
		this.age = age;
	}
	@Override
	public String toString() {
		return "User [name=" + name + ", id=" + id + ", age=" + age + "]";
	}
	
	public void showUserName() {
		System.out.println(name);
	}

	public void showUserAge() {
		System.out.println(age);
	}
}
